package com.rsk.aop.exception;


public class ParamIsNullException extends RuntimeException {
	
	private static final long serialVersionUID = 8978184132279738481L;
	
	private final String parameterName;
    private final String parameterType;

    public ParamIsNullException(String parameterName, String parameterType) {
        super("");
        this.parameterName = parameterName;
        this.parameterType = parameterType;
    }

    @Override
    public String getMessage() {
    	//return "Required " + this.parameterType + " parameter \'" + this.parameterName + "\' must be not null !";
        return "参数" + this.parameterName + "不能为空 !";
    }

    public final String getParameterName() {
        return this.parameterName;
    }

    public final String getParameterType() {
        return this.parameterType;
    }

}
